import request from '@/utils/request'

// 查询支付申请列表
export function listSubsidyapplications(query) {
  return request({
    url: '/system/subsidyapplications/list',
    method: 'get',
    params: query
  })
}

// 查询支付申请详细
export function getSubsidyapplications(id) {
  return request({
    url: '/system/subsidyapplications/' + id,
    method: 'get'
  })
}

// 新增支付申请
export function addSubsidyapplications(data) {
  return request({
    url: '/system/subsidyapplications',
    method: 'post',
    data: data
  })
}

// 修改支付申请
export function updateSubsidyapplications(data) {
  return request({
    url: '/system/subsidyapplications',
    method: 'put',
    data: data
  })
}

// 删除支付申请
export function delSubsidyapplications(id) {
  return request({
    url: '/system/subsidyapplications/' + id,
    method: 'delete'
  })
}
